<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" dir="ltr">
<head>
#headTag("$owner.account.nickname的个人资料")
</head>
<body>
<div id="page">
#parse("default/_header.htm")
<div id="middle">
<div id="main_wrap">
	<div id="main">
		#topbar()
		<div class="center">
			<h1>${owner.account.nickname}的个人资料</h1>
			<div class="content">
				<div class="profile">
					<div>
					<div class="photo" style="float:left;margin-bottom:5px;">
						<img src="${url.base}#if($owner.account.extInfo.photoPath)$owner.account.extInfo.photoPath#{else}/static/photo.jpg#end"/>
						<a href="${url.base}/member/${owner.id}/profile">${owner.account.nickname}</a>
					</div>
					<div style="float:left;margin-left:100px;">
						<a href="${url.base}/message?receiverId=${owner.id}" style="background:url(${url.base}/static/pmto.gif) no-repeat;background-position:0 50%;padding-left:20px;">发短消息</a>
						<a href="${url.base}/member/${owner.id}/topic" style="background:url(${url.base}/static/search.jpg) no-repeat;background-position:0 50%;padding-left:20px;margin-left:10px;">搜索帖子</a>
					</div>
					<div class="clear"></div>
					</div>
					<hr class="seperator"/>
					<div style="float:left; width:400px;">
					<table>
						<tr>
							<th>昵称:</th>
							<td>${owner.account.nickname}</td>
						</tr>
						<tr>
							<th>目前居住地:</th>
							<td>$model.region.province(1)</td>
						</tr>
						<tr>
							<th>来自:</th>
							<td>$!model.region.province($owner.account.extInfo.provinceId)-$!model.region.city($owner.account.extInfo.cityId)</td>
						</tr>
						<tr>
							<th>生日:</th>
							<td>#if($owner.account.extInfo.birthday)$utils.dateFormat('yyyy-MM-dd',$owner.account.extInfo.birthday)($utils.birthday($owner.account.extInfo.birthday).constellation)#end</td>
						</tr>
						<tr>
							<th>所在工厂:</th>
							<td>$!{owner.account.extInfo.factory}</td>
						</tr>
					</table>
					</div>
					<div class="intro">
					<h3>自我介绍:</h3>
					<p>$!{owner.account.extInfo.intro}</p>
					</div>
					<div class="clear"></div>
					<hr class="seperator"/>
					<table>
						<tr>
							<th>发帖数级别:</th>
							<td>$model.postLevelName($owner)<img src="${url.base}/static/level/level_${model.postLevelOrdinal($owner)}.gif"/></td>
							<th>帖子:</th>
							#set($totalPostCount=$owner.replyCount+$owner.subjectCount)
							<td>$totalPostCount</td>			
						</tr>
						<tr>
							<th>注册日期:</th>
							<td>$utils.dateFormat('yyyy-MM-dd',$owner.account.created)</td>		
							<th>上一次离线:</th>
							<td>$!utils.dateFormat('yyyy-MM-dd',$owner.account.lastOffline)</td>	
						</tr>
						<tr>
							<th>平均每日发帖:</th>
							<td>$owner.averagePost()</td>	
							<th>精华:</th>
							<td>$owner.digestCount</td>		
						</tr>
						<tr>
							<th>权重:</th>
							<td>${owner.account.rank}</td>	
							<th>勋章:</th>
							<td>
								<img style="margin-right:10px;" src="${url.base}/static/medal/1.gif"/>
							</td>		
						</tr>
					</table>
					
				</div>
			</div>
		</div>
	</div>
</div>
#parse("default/_sidebar.htm")
</div>
</div>
#parse("default/_footer.htm")
</body>
</html>